<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditVehiculoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditVehiculoLabel_idAuto}" for="idAuto" />
                    <h:inputText id="idAuto" value="#{vehiculoController.selected.idAuto}" title="#{bundle.EditVehiculoTitle_idAuto}" required="true" requiredMessage="#{bundle.EditVehiculoRequiredMessage_idAuto}"/>
                    <h:outputLabel value="#{bundle.EditVehiculoLabel_idCliente}" for="idCliente" />
                    <h:inputText id="idCliente" value="#{vehiculoController.selected.idCliente}" title="#{bundle.EditVehiculoTitle_idCliente}" />
                    <h:outputLabel value="#{bundle.EditVehiculoLabel_idLavado}" for="idLavado" />
                    <h:inputText id="idLavado" value="#{vehiculoController.selected.idLavado}" title="#{bundle.EditVehiculoTitle_idLavado}" />
                    <h:outputLabel value="#{bundle.EditVehiculoLabel_marca}" for="marca" />
                    <h:inputText id="marca" value="#{vehiculoController.selected.marca}" title="#{bundle.EditVehiculoTitle_marca}" />
                    <h:outputLabel value="#{bundle.EditVehiculoLabel_tipoAuto}" for="tipoAuto" />
                    <h:inputText id="tipoAuto" value="#{vehiculoController.selected.tipoAuto}" title="#{bundle.EditVehiculoTitle_tipoAuto}" />
                    <h:outputLabel value="#{bundle.EditVehiculoLabel_placa}" for="placa" />
                    <h:inputText id="placa" value="#{vehiculoController.selected.placa}" title="#{bundle.EditVehiculoTitle_placa}" />
                    <h:outputLabel value="#{bundle.EditVehiculoLabel_llantas}" for="llantas" />
                    <h:inputText id="llantas" value="#{vehiculoController.selected.llantas}" title="#{bundle.EditVehiculoTitle_llantas}" />
                    <h:outputLabel value="#{bundle.EditVehiculoLabel_puertas}" for="puertas" />
                    <h:inputText id="puertas" value="#{vehiculoController.selected.puertas}" title="#{bundle.EditVehiculoTitle_puertas}" />
                </h:panelGrid>
                <h:commandLink action="#{vehiculoController.update}" value="#{bundle.EditVehiculoSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditVehiculoViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{vehiculoController.prepareList}" value="#{bundle.EditVehiculoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditVehiculoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
